﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Grind.Master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="GWA.register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="selex" style="margin-left:18%; width: 625px;"><h1>Register Profile</h1></div>
<div class="contentz" style="width: 700px;">
    <asp:CreateUserWizard LoginCreatedUser="true" ID="CreateUserWizard1" runat="server" OnCreatedUser="CreateUserWizard1_CreatedUser" >
        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <table style="text-align: right;">
                        <caption>Required Information</caption>
                            <tr style="width: 625px">
                                <td align="left" colspan="4" style="color: red; padding: 0 0 5px 45%;">
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="CreateUserWizard1" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                User Name:</td>
                                <td><asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                
                                </td>
                                <td style="padding-left: 20px">
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                Email:</td>
                                <td><asp:TextBox ID="Email" runat="server"></asp:TextBox></td>
                             </tr>
                             <tr>
                                <td>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                Password:</td>
                                <td><asp:TextBox ID="Password" TextMode="Password" runat="server"></asp:TextBox></td>
                                <td style="padding-left: 20px;">
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>                                
                                Confirm Password:</td>
                                <td><asp:TextBox ID="ConfirmPassword" TextMode="Password" runat="server"></asp:TextBox></td>
                             </tr>
                             <tr>
                                <td style="width: 125px;">
                                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                                    ErrorMessage="Security question is required." ToolTip="Security question is required."
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">
                                    Security Question:</asp:Label></td>
                                <td><asp:TextBox ID="Question" runat="server"></asp:TextBox></td>
                                <td style="padding-left: 20px;">
                                    <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                        ErrorMessage="Security answer is required." ToolTip="Security answer is required."
                                        ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">
                                    Security Answer:</asp:Label></td>
                                <td><asp:TextBox ID="Answer" runat="server"></asp:TextBox></td>
                             </tr>
                             <tr>
                                <td align="center" colspan="4">
                                     <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                    ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                </td>
                             </tr>
                        </table>  
                        <table style="text-align: right;">
                        <caption>Optional Information</caption>
                        <tr>
                            <td>First Name:</td>
                            <td><asp:TextBox ID="txtFName" runat="server"></asp:TextBox></td>
                            <td style="padding-left: 20px;">Last Name:</td>
                            <td><asp:TextBox ID="txtLName" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Address:</td>
                            <td><asp:TextBox ID="txtAddr" runat="server"></asp:TextBox></td>
                            <td style="padding-left: 20px;">City: </td>
                            <td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 125px;">Zip:</td>
                            <td><asp:TextBox ID="txtZip" runat="server"></asp:TextBox></td>
                            <td style="padding-left: 20px;">State:</td>
                            <td align="left">
                                <asp:DropDownList ID="ddlState" runat="server">
                                    <asp:ListItem Value="AL" Text="Alabama"></asp:ListItem>
                                    <asp:ListItem Value="AK" Text="Alaska"></asp:ListItem>
                                    <asp:ListItem Value="AZ" Text="Arizona"></asp:ListItem>
                                    <asp:ListItem Value="AR" Text="Arkansas"></asp:ListItem>
                                    <asp:ListItem Value="CA" Text="California"></asp:ListItem>
                                    <asp:ListItem Value="CO" Text="Colorado"></asp:ListItem>
                                    <asp:ListItem Value="CT" Text="Connecticut"></asp:ListItem>
                                    <asp:ListItem Value="DE" Text="Delaware"></asp:ListItem>
                                    <asp:ListItem Value="DC" Text="District of Columbia"></asp:ListItem>
                                    <asp:ListItem Value="FL" Text="Florida"></asp:ListItem>
                                    <asp:ListItem Value="GA" Text="Georgia"></asp:ListItem>
                                    <asp:ListItem Value="HI" Text="Hawaii"></asp:ListItem>
                                    <asp:ListItem Value="ID" Text="Idaho"></asp:ListItem>
                                    <asp:ListItem Value="IL" Text="Illinois"></asp:ListItem>
                                    <asp:ListItem Value="IN" Text="Indiana"></asp:ListItem>
                                    <asp:ListItem Value="IA" Text="Iowa"></asp:ListItem>
                                    <asp:ListItem Value="KS" Text="Kansas"></asp:ListItem>
                                    <asp:ListItem Value="KY" Text="Kentucky"></asp:ListItem>
                                    <asp:ListItem Value="LA" Text="Louisiana"></asp:ListItem>
                                    <asp:ListItem Value="ME" Text="Maine"></asp:ListItem>
                                    <asp:ListItem Value="MD" Text="Maryland"></asp:ListItem>
                                    <asp:ListItem Value="MA" Text="Massachusetts"></asp:ListItem>
                                    <asp:ListItem Value="MI" Text="Michigan"></asp:ListItem>
                                    <asp:ListItem Value="MN" Text="Minnesota"></asp:ListItem>
                                    <asp:ListItem Value="MS" Text="Mississippi"></asp:ListItem>
                                    <asp:ListItem Value="MO" Text="Missouri"></asp:ListItem>
                                    <asp:ListItem Value="MT" Text="Montana"></asp:ListItem>
                                    <asp:ListItem Value="NE" Text="Nebraska"></asp:ListItem>
                                    <asp:ListItem Value="NV" Text="Nevada"></asp:ListItem>
                                    <asp:ListItem Value="NH" Text="New Hampshire"></asp:ListItem>
                                    <asp:ListItem Value="NJ" Text="New Jersey"></asp:ListItem>
                                    <asp:ListItem Value="NM" Text="New Mexico"></asp:ListItem>
                                    <asp:ListItem Value="NY" Text="New York"></asp:ListItem>
                                    <asp:ListItem Value="NC" Text="North Carolina"></asp:ListItem>
                                    <asp:ListItem Value="ND" Text="North Dakota"></asp:ListItem>
                                    <asp:ListItem Value="OH" Text="Ohio"></asp:ListItem>
                                    <asp:ListItem Value="OK" Text="Oklahoma"></asp:ListItem>
                                    <asp:ListItem Value="OR" Text="Oregon"></asp:ListItem>
                                    <asp:ListItem Value="PA" Text="Pennsylvania"></asp:ListItem>
                                    <asp:ListItem Value="RI" Text="Rhode Island"></asp:ListItem>
                                    <asp:ListItem Value="SC" Text="South Carolina"></asp:ListItem>
                                    <asp:ListItem Value="SD" Text="South Dakota"></asp:ListItem>
                                    <asp:ListItem Value="TN" Text="Tennessee"></asp:ListItem>
                                    <asp:ListItem Value="TX" Text="Texas"></asp:ListItem>
                                    <asp:ListItem Value="UT" Text="Utah"></asp:ListItem>
                                    <asp:ListItem Value="VT" Text="Vermont"></asp:ListItem>
                                    <asp:ListItem Value="VA" Text="Virginia"></asp:ListItem>
                                    <asp:ListItem Value="WA" Text="Washington"></asp:ListItem>
                                    <asp:ListItem Value="WV" Text="West Virginia"></asp:ListItem>
                                    <asp:ListItem Value="WI" Text="Wisconsin"></asp:ListItem>
                                    <asp:ListItem Value="WY" Text="Wyoming"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>Phone:</td>
                            <td><asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                            <td style="padding-left: 20px">Healthcare: </td> 
                            <td>
                                <asp:RadioButtonList ID="rdbHealthcare" runat="server">
                                    <asp:ListItem Value="True" Text="True"></asp:ListItem>
                                    <asp:ListItem Value="False" Text="False"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                    </table>
                    </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep>
                <ContentTemplate>
                    <div style="margin: 0 auto;">You have successfully created an account. <br />
                        <asp:Button ID="btnCont" runat="server" Text="Continue" OnClick="btnCont_OnClick" />
                    </div>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
</div>
</asp:Content>
